<template>
  <van-share-sheet v-model:show="showShare" title="立即分享给好友" :options="options" @select="onSelect" />
  
</template>

<script setup>
import { reactive, toRefs, ref, onMounted } from 'vue'
import {Toast} from 'vant'
let showShare = ref(false);
const options = [
  { name: '微信', icon: 'wechat' },
  { name: '微博', icon: 'weibo' },
  { name: '复制链接', icon: 'link' },
  { name: '分享海报', icon: 'poster' },
  { name: '二维码', icon: 'qrcode' },
];

const onSelect = (option) => {
  Toast(option.name);
  showShare.value = false;
};



defineExpose({ showShare })
</script>
  
<style lang='less' scoped>
</style>